package com.samuel;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author kaiji
 * @since 2021-04-02 14:35:43
 */
@SpringBootApplication
@EnableDiscoveryClient
public class OrderZkApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(OrderZkApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return super.configure(builder.sources(OrderZkApplication.class));
    }
}
